//
//  MCBillTopView.swift
//  StoreManage
//
//  Created by MC on 2018/5/18.
//  Copyright © 2018年 MC. All rights reserved.
//

import UIKit

class MCBillTopView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.frame = CGRect.init(x: 0, y: 0, width: MCScreenWidth, height: 110)
        backgroundColor = UIColor.MCGray_light
        self.addSubview(countLabel)
        countLabel.snp.remakeConstraints { (make) ->Void in
            make.centerX.equalTo(self)
            make.top.equalTo(20)
        }
        
        self.addSubview(moneyLabel)
        moneyLabel.snp.remakeConstraints { (make) ->Void in
            make.centerX.equalTo(self)
            make.top.equalTo(countLabel.snp.bottom).offset(15)
        }

    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    lazy var countLabel: MCLabel = {
        let label = MCLabel()
        label.text = "今日收款0笔，合计"
        return label
    }()
    
    lazy var moneyLabel: MCLabel = {
        let label = MCLabel()
        label.text = "¥0"
        label.textColor = UIColor.MCMain
        label.font = MCFont(30)
        return label
    }()

}
